﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainFrm.Master" AutoEventWireup="true" CodeBehind="TallyList.aspx.cs" Inherits="Ewts.Storage.TallyList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EwtsConext" runat="server">

<h2>理货列表</h2>
<br />
<div class="shadow"> 
    <asp:Repeater ID="reptTallyList" runat="server" 
        onitemcommand="reptTallyList_ItemCommand">
      <HeaderTemplate>
 
    <table id="tbCustomer" class="display" cellpadding="0" cellspacing="0" border="0" style="width:100%;">
      <thead>
        <tr>
            <th>序号</th>
            <th>Load号</th>
            <th>归属地</th>
            <th>处理地</th>
            <th>客户名称</th>
            <th>项目编号</th>
            <th>项目名称</th>
            <th>理货单号</th>
            <th>业务员</th>
            <th>理货处理前</th>
            <th>理货处理后</th>
            <th>备注</th>
            <th>操作</th>
        </tr>
      </thead>
      <tbody>
  </HeaderTemplate>
  <ItemTemplate>
    <tr>
      <td><%# Container.ItemIndex + 1%></td>
      <td><%# Eval("loadno")%></td>
      <td><%# Eval("bcity")%></td>
      <td><%# Eval("gcity")%></td>
      <td><%# Eval("cumstomer")%></td>
      <td><%# Eval("projectcode")%></td>
      <td><%# Eval("projectname")%></td>
      <td><%# Eval("tallyno")%></td>
      <td><%# Eval("saleman").ToString().Replace("@","-").Replace("/","-")%></td>
      <td><%# Eval("b_nwt")%></td>
      <td><%# Eval("a_nwt")%></td>
       <td></td>
      <td>
        <a href='/RDLC/TallyPrintRDLC.aspx?tallyid=<%# Eval("tallyid")%>' >查询打印</a>
        <a href='Tally.aspx?tallyid=<%# Eval("tallyid")%>' >原料理货</a>
        <asp:LinkButton runat="server" ID="lbtDelete" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "tallyid")%>'
                     CommandName="Delete" Text="删除理货" OnClientClick="return confirm('确定要删除？')"></asp:LinkButton>
                    </td>
      </td>
    </tr>
  </ItemTemplate>
  <FooterTemplate>
    </tbody>
    </table>
  </FooterTemplate>
    </asp:Repeater>
</div>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#tbCustomer').dataTable({ "oLanguage": { "sUrl": "/jquery/jquery.dataTable.cn.txt" },
                "bJQueryUI": true,
                "sPaginationType": "full_numbers",
                'bPaginate': true,
                "bProcessing": true,
                "iDisplayLength": 20,
                "bSort": true,
                "aaSorting": [[0, "asc"]]
            });

        });
 
</script>
</asp:Content>
